package test.asphalt2.factory.impl
{
	import test.asphalt2.factory.BarService;
	import test.asphalt2.factory.FooService;
	import test.asphalt2.factory.HogeService;
	
	public class HogeServiceImpl implements HogeService
	{
		private var _fooArray:Array;
		private var _barService:BarService;
		
		public function set fooArray(value:Array):void{
			_fooArray = value;
		}
		public function set barService(value:BarService):void{
			_barService = value;
		}
		
		public function executeHoge():String{
			return FooService(_fooArray[0]).executeFoo() +
					FooService(_fooArray[1]).executeFoo() +
					 _barService.executeBar();
		}
	}
}